package com.hqu.environment.dao;

import com.hqu.environment.dto.FarmDTO;
import com.hqu.environment.dto.FarmEquipmentDTO;
import com.hqu.environment.dto.UserFarmDTO;

import java.util.List;

/**
 * @Description: 农场dao层
 * @Date: 2019/04/12 16:03
 * @Author: 邓勇嘉
 **/
public interface FarmDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(FarmDTO record);

    FarmDTO selectByPrimaryKey(Integer id);

    List<FarmDTO> selectList(FarmDTO farmDTO);

    int updateByPrimaryKeySelective(FarmDTO record);

    List<FarmDTO> selectListByUserId(Integer userId);

    List<FarmDTO> getSimpleFarmList(Integer userId);

    int selectFarmCount();

    int delete(List<Integer> list);

    int deleteFarmEquipmentByFarmId(Integer id);

    int deleteFarmEquipmentList(List<Integer> list);

    int insertFarmEquipment(FarmEquipmentDTO farmEquipmentDTO);

    int insertUserFarm(UserFarmDTO userFarmDTO);

    int deleteUserFarm(UserFarmDTO uf);

    List<UserFarmDTO> selectUserFarmList(Integer farmId);
}
